Skip to content

Update the Google account details of the EMM enrollment stored in the database for a specific device.
Stable

Request

⚠️ Android only.

Updates the Google user ID and Google device ID that Esper has stored for a device.

Changes Esper's record only; nothing is changed on the Google side. Returns the device_id and tenant_id of the updated record.

About Updating a Device Google Account Use this to correct Esper's record when it no longer matches what the emm-managed/ endpoint reports for the device.

Key Fields / Query Parameters

  • deviceId — UUID of the device
  • google_device_id, google_user_id — Both required
Path
deviceIdstring, (uuid)required

The unique identifier of the device for which Google account details need to be updated.

Bodyapplication/jsonrequired
google_device_idstringrequired

Unique identifier for the Google device.

google_user_idstringrequired

Unique identifier for the Google user.

cURL
curl -i -X PUT \
  'https://api.esper.io/_mock/openapi/v2/devices/{deviceId}/google-accounts/' \
  -H 'Content-Type: application/json' \
  -d '{
    "google_device_id": "string",
    "google_user_id": "string"
  }'

Responses

Successfully updated the Google account details.

Bodyapplication/json
contentobject(device_GoogleAccountUpdateResponseBody)
Response
{ "content": { "device_id": "string", "tenant_id": "string" } }